/**
 * 
 */
package com.vision.core.cm.exception;



/**
 * Base class for all Exceptions that are throwable by services to the client.
 * An {@link RpcException} represents any runtime exception that occurred while
 * processing the service call. Since {@link RpcException}s are sent to the client,
 * the messages they contain must be human-readable.
 *  
 * All services must declare this Exception in their <tt>throws</tt> clause. 
 * 
 * @author Mark
 *
 */
public class RpcException extends DispatchException {

	private static final long serialVersionUID = 1L;
	
	public static void fire(String message) throws RpcException {
		throw new RpcException(message);
	}
	
	RpcException() {
		this((String) null);
	}
	
	public RpcException(String message) {
		super(message);
	}
	
	public RpcException(Exception exception) {
		super(exception);
	}
	
	public RpcException(String message, Exception exception) {
		super(message, exception);
	}

}
